# -*- coding: utf-8 -*-
from util.tool_func import create_proxy_session
#
# try:
#     raise StopIteration()
# except StopIteration:
#     exit(0)
# except Exception as e:
#     print(e)
# finally:
#     print(1)

print(create_proxy_session('119.29.149.105:16816').get('https://httpbin.org/get', headers={'Connection': 'keep-alive'}).json())
print(create_proxy_session('119.29.149.105:16816').get('http://httpbin.org/get').json())
